import java.util.*;

public class Party {

	Scanner keyboard = new Scanner (System.in);

	Character[] characterParty = new Character[4];
	boolean validGender = false;
	boolean validName = false;
	String gender;
	String name;

	public void partyCreation(){
		System.out.println("MAKE YOUR PEOPLE!!!");
		System.out.println("Lets start with your main character");
		//get gender
		while(validGender == false){
			System.out.println("What gender is your main character? M for male or F for Female (This makes no difference in gameplay)");
			gender = keyboard.next().toUpperCase();
			System.out.println("The Gender you entered was: "+ gender);
			if (gender.equals("F") || gender.equals("M")){
				validGender = true;
			}
			else{
				System.out.println("The gender you entered is not valid. Try again!!");
			}
				
		}
		while(validName == false){
			System.out.println("Please enter a name for your main character. (No more than 10 characters)");
			name = keyboard.next();
			System.out.println("The name you entered was: "+ name);
			
			if(name.length() == 0)
				System.out.println("Empty name not valid. PLease try again");
			else if(name.length() > 10)
				System.out.println("Name longer than 10 characters. Please try again");
			else
				validName = true;
		}
		
		
		System.out.println("CHARACTER SUMMARY (DEBUG)");
		System.out.println("Gender: "+ gender);
		System.out.println("Name: " + name);
	}
}
